#!/bin/bash
exec 1> log #永久重定向标准输出
echo "Permanent redirection"
echo "from a shell to a file."
echo "without redirecting every line"

exec 2> error.log #永久重定向标准错误
echo "Script Begining ..."
echo "Redirecting Output"
